import request from '@/utils/request'

//分页查询
export function pageList(data) {
    return request({
        url: '/warningDeductPoints/toList.do',
        method: 'post',
        headers:{
            'Content-Type':'application/x-www-form-urlencoded;charset=UTF-8'      //改这里就好了
        },
        data,
    })
}

//新增/修改
export function save(data) {
    return request({
        url: '/warningDeductPoints/save.do',
        method: 'post',
        data,
    })
}


//删除
export function deleted(data) {
    return request({
        url: '/warningDeductPoints/delete.do',
        method: 'post',
        data,
    })
}


//id查询
export function getOne(data) {
    return request({
        url: '/warningDeductPoints/selectOne.do',
        method: 'post',
        data,
    })
}


//查询所有可用扣分项
export function getAllList(data) {
    return request({
        url: '/warningDeductPoints/getAllList.do',
        method: 'post',
        data,
    })
}